//
//  BK_Store_BarCode_VC.m
//  bestkeep
//
//  Created by TOPTEAM on 2017/4/5.
//  Copyright © 2017年 utouu. All rights reserved.
//

#import "BK_Store_BarCode_VC.h"

@interface BK_Store_BarCode_VC ()

@end

@implementation BK_Store_BarCode_VC

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    
    self.view.backgroundColor=[UIColor whiteColor];
//    强制转成横屏:
    
//    if ([[UIDevice currentDevice] respondsToSelector:@selector(setOrientation:)]) {
//        SEL selector = NSSelectorFromString(@"setOrientation:");
//        NSInvocation *invocation = [NSInvocation invocationWithMethodSignature:[UIDevice instanceMethodSignatureForSelector:selector]];
//        [invocation setSelector:selector];
//        [invocation setTarget:[UIDevice currentDevice]];
//        int val = UIInterfaceOrientationLandscapeRight;
//        [invocation setArgument:&val atIndex:2];
//        [invocation invoke];
//    }
}
-(BOOL)shouldAutorotate
{
    return YES;
    
}
- (UIInterfaceOrientationMask)supportedInterfaceOrientations {
    //竖屏显示
//    return UIInterfaceOrientationMaskPortrait;
    
    //横屏显示
    return UIInterfaceOrientationMaskLandscape;
}

-(UIInterfaceOrientation)preferredInterfaceOrientationForPresentation {
    return UIInterfaceOrientationLandscapeLeft;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
